package com.zlcx.tz.live.client.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import java.io.Serializable;

/**
 * @author shixiaopeng
 *
 * 连麦免费相关信息设置
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@DynamicUpdate
@DynamicInsert
public class LiveExperienceVO implements Serializable {

    private static final long serialVersionUID = -7710975848079627189L;
    /**
     * 非会员是否可以创建房间，1可以，0不可以
     */
    @ApiModelProperty(value="非会员是否可以创建房间，1可以，0不可以")
    private Integer createRoomFlag;
    /**
     *每次免费时长，分钟
     */
    @ApiModelProperty(value="每次免费时长，分钟")
    private Integer freeTimes;

    @ApiModelProperty(value="每天总的免费次数")
    private Integer totalFreeNum;
    /**
     *每天免费剩余次数
     */
    @ApiModelProperty(value="每天免费剩余次数")
    private Integer freeNum;

    public enum CreateRoomFlagEnum{
        ON(1, "yes"),
        OFF(0, "no");

        public final Integer code;
        public final String desc;
        CreateRoomFlagEnum(Integer code, String desc) {
            this.code = code;
            this.desc = desc;
        }


    }
}